package com.juku2024.juku.db.dao;


import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;

import com.juku2024.juku.db.entity.HotSearchModel;

@Dao
public interface HotDao {

    @Query("SELECT * FROM hotSearchTable")
    HotSearchModel query();

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insert(HotSearchModel entity);

    @Update(onConflict = OnConflictStrategy.REPLACE)
    int update(HotSearchModel entity);

    @Query("DELETE FROM hotSearchTable")
    void delete();

}
